<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="http://127.0.0.1/hdwy/wasai/Public/Bootstrap/Css/bootstrap.min.css" />
	<link rel="stylesheet" href="http://127.0.0.1/hdwy/wasai/Application/Admin/View/Public/Css/common.css" />
	<script type="text/javascript" src='http://127.0.0.1/hdwy/wasai/Application/Admin/View/Public/Js/jquery-1.7.2.min.js'></script>
	<style type="text/css">
		body{
			margin-bottom: 100px;
		}
	</style>
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	
	<form action="<?php echo U('edit');?>" method='post'>
	
		<table class='table table-bordered table-hover'>
			<tr>
				<th></th>
				<?php foreach ($spec as $k=>$v){?>
					<th><?php echo $v['ta_name'];?></th>
				<?php }?>
				<th>库存</th>
				<th>货号</th>
			</tr>			
			<tr class="info">
				<td>修改货品</td>	
			<?php foreach ($spec as $k=>$v){?>
				<td>
					<select name="spec[]" class="add">
						<option value="0">请选择</option>						
							<?php foreach ($v[option] as $kk=>$vv){?>
								<option value="<?php echo $vv['said'];?>"     <?php if(in_array($vv['said'],$selected)){ ?>selected<?php } ?> ><?php echo $vv['savalue'];?></option>
							<?php }?>							
					</select>
				</td>
			<?php }?>
				<td>
					<input type="text" name='inventory' value="<?php echo $oldData['inventory'];?>" />				
				</td>
				<td>
					<input type="text" name='number' value="<?php echo $oldData['number'];?>" />
				</td>
			</tr>
			
		</table>
		
		<input type="hidden" name="tid" id="" value='<?php echo $_GET["tid"];?>' />
		<input type="hidden" name="oldcombine" value="<?php echo $oldData['combine'];?>" />
		<input type="hidden" name='shop_sid' value='<?php echo $oldData['shop_sid'];?>'/>
		<input type="hidden" name='slid' value='<?php echo $_GET["slid"];?>'/>
		<input type="submit" value='确定修改' class="btn btn-primary"/>
	</form>
	

	</div>
	</div>
	</div>
</body>
</html>